From a9f743f88ce63a552764b2e37cf6c4c0ac53ca30 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Wed, 30 Nov 2011 07:12:41 -0800 Subject: [PATCH] Free d->mem_event on domain destruction. Signed-off-by: Keir Fraser --- xen/common/domain.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xen/common/domain.c b/xen/common/domain.c index e110585ebd..52a63efb82 100644 --- a/xen/common/domain.c +++ b/xen/common/domain.c @@ -668,6 +668,8 @@ static void complete_domain_destroy(struct rcu_head *head) /* Free page used by xen oprofile buffer. */ free_xenoprof_pages(d); + xfree(d->mem_event); + for ( i = d->max_vcpus - 1; i >= 0; i-- ) if ( (v = d->vcpu[i]) != NULL ) { -- 2.30.2